<%@page import="com.myapp.actions.user.ValidateUser"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="mw" uri="/WEB-INF/tlds/myweb" %>
<mw:action action="<%=new ValidateUser()%>" result="result"/>
<c:if test="${result != null}">
  <c:redirect url="index.jsp" />
</c:if>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
    <title>CliniQ</title>
    <%@include file="/commons/head.jsp" %>
  </head>
  <body>
    <%@include file="/commons/navbar.jsp" %>
    <div class="container">
      ${result}
      <form id="user-login" method="POST" action="login.jsp" class="form-horizontal">
        <div class="control-group">
          <label class="control-label" for="username">Username</label>
          <div class="controls">
            <input type="text" name="username" id="username" placeholder="Username">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="password">Password</label>
          <div class="controls">
            <input type="password" name="password" id="password" placeholder="Password">
          </div>
        </div>
        <div class="control-group">
          <div class="controls">
            <input type="submit" class="btn" value="Login" />
          </div>
        </div>
      </form>
    </div>
    <script src="${path}/version.js"></script>
    <%@include file="/commons/footer.jsp" %>
  </body>
</html>

